package org.fast.develop.logicflow.core.meta.shape;


import org.fast.develop.logicflow.core.meta.base.Ref;
import org.fast.develop.logicflow.core.meta.base.Resource;
import org.fast.develop.logicflow.core.meta.base.line.Incoming;
import org.fast.develop.logicflow.core.meta.shape.properties.EndProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 莫寅
 * @createTime 2022-11-23 01:19
 * @desc：
 */
public class End extends Resource<EndProperties> implements Incoming {

    private List<Ref> incoming = new ArrayList<>();

    @Override
    public List<Ref> getIncoming() {
        return incoming;
    }

    @Override
    public void setIncoming(List<Ref> incoming) {
        this.incoming = incoming;
    }

    @Override
    public String toString() {
        return "End{" +
                "resourceId='" + getResourceId() + '\'' +
                ", incoming=" + incoming +
                '}';
    }

    @Override
    public Class<EndProperties> getPropertiesClass() {
        return EndProperties.class;
    }
}
